<%@ page import="java.util.ArrayList" %><%--
  JSP标签，JSTL标签，EL表达式
  EL：获取数据，执行运算，获取web开发常用对象

  <dependency>
      <groupId>javax.servlet.jsp.jstl</groupId>
      <artifactId>jstl-api</artifactId>
      <version>1.2</version>
  </dependency>

  <dependency>
      <groupId>taglibs</groupId>
      <artifactId>standard</artifactId>
      <version>1.1.2</version>
  </dependency>




--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%--<%@include file="common/header.jsp"%>--%>
<%--<jsp:include page="index.jsp"></jsp:include>--%>


<%--转发可以携带参数--%>
<%--<jsp:forward page="tagReceive.jsp">--%>
<%--  <jsp:param name="name1" value="姓名1"/>--%>
<%--  <jsp:param name="name3" value="姓名2"/>--%>
<%--</jsp:forward>--%>

<%--if测试--%>
<form action="tag.jsp" method="get">
    <input type="text" name="username" value="${param.username}">
    <input type="submit" value="登录">
</form>

<c:if test="${param.username == 'admin'}" var="isAdmin">
    <c:out value="管理员"></c:out>
</c:if>
<c:out value="${isAdmin}"></c:out>


<c:set var="score" value="55"></c:set>
<c:choose>
    <c:when test="${score>=90}">你的成绩优秀</c:when>
    <c:when test="${score>=70}">你的成绩一般</c:when>
    <c:when test="${score<=70}">你的成绩很差</c:when>
</c:choose>


<%
    ArrayList<String> people = new ArrayList<>();
    people.add(0,"张三");
    people.add(1,"李四");
    people.add(2,"王五");
    people.add(3,"赵六");
    request.setAttribute("lest",people);
%>
<c:forEach var="people" items="${list}">
    <c:out value="${people}"></c:out>
</c:forEach>

</body>
</html>
